package com.totoro.mapper;

import com.totoro.pojo.IndexCategory;
import com.totoro.pojo.Product;
import com.totoro.pojo.Shop;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author TOTORO
 * @date 2021/8/30 23:20
 */
@Repository
public interface IndexMapper {

    List<IndexCategory> findAllOneCategory();

    List<IndexCategory> findAllTwoCategoryByOneCategoryId(@Param("icId") int icId);

    List<IndexCategory> findAllThreeCategoryByTwoCategoryId(@Param("icId") int icId);

    Integer updateCategoryDetail(IndexCategory indexCategory);

    List<Shop> findMaxScoreThreeAShop();

    List<Product> findMaxDealProductByShop(@Param("sid") int sid);
}
